package com.ruoyi.womp.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 衡器列表对象 womp_weighing_apparatus
 * 
 * @author mzz
 * @date 2022-12-12
 */
public class WompWeighingApparatus extends BaseEntity {
	private static final long serialVersionUID = 1L;

	/** 主键 */
	private Long id;

	/** 类型 */
	@Excel(name = "类型")
	private String type;

	/** 编码 */
	@Excel(name = "编码")
	private String code;

	/** 名称 */
	@Excel(name = "名称")
	private String name;

	/** 型号 */
	@Excel(name = "型号")
	private String model;

	/** 规格 */
	@Excel(name = "规格")
	private String spec;

	/** 安装日期 */
	@JsonFormat(pattern = "yyyy-MM-dd")
	@Excel(name = "安装日期", width = 30, dateFormat = "yyyy-MM-dd")
	private Date installDate;

	/** 所属用户 */
	@Excel(name = "所属用户")
	private String userId;

	/** 实时要素 */
	@Excel(name = "实时要素")
	private String indexChartElement;

	/** 告警提示音 */
	@Excel(name = "告警提示音")
	private String alarmMusic;

	/** 默认显示 */
	@Excel(name = "默认显示")
	private String isDef;

	/** 自动工单 */
	@Excel(name = "自动工单")
	private String autoWorkorder;

	/** 责任人 */
	@Excel(name = "责任人")
	private String charger;

	/** 所属部门 */
	private String sysOrgCode;

	public void setId(Long id) {
		this.id = id;
	}

	public Long getId() {
		return id;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getType() {
		return type;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getCode() {
		return code;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public void setModel(String model) {
		this.model = model;
	}

	public String getModel() {
		return model;
	}

	public void setSpec(String spec) {
		this.spec = spec;
	}

	public String getSpec() {
		return spec;
	}

	public void setInstallDate(Date installDate) {
		this.installDate = installDate;
	}

	public Date getInstallDate() {
		return installDate;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getUserId() {
		return userId;
	}

	public void setIndexChartElement(String indexChartElement) {
		this.indexChartElement = indexChartElement;
	}

	public String getIndexChartElement() {
		return indexChartElement;
	}

	public String getAlarmMusic() {
		return alarmMusic;
	}

	public void setAlarmMusic(String alarmMusic) {
		this.alarmMusic = alarmMusic;
	}

	public void setIsDef(String isDef) {
		this.isDef = isDef;
	}

	public String getIsDef() {
		return isDef;
	}

	public String getAutoWorkorder() {
		return autoWorkorder;
	}

	public void setAutoWorkorder(String autoWorkorder) {
		this.autoWorkorder = autoWorkorder;
	}

	public String getCharger() {
		return charger;
	}

	public void setCharger(String charger) {
		this.charger = charger;
	}

	public void setSysOrgCode(String sysOrgCode) {
		this.sysOrgCode = sysOrgCode;
	}

	public String getSysOrgCode() {
		return sysOrgCode;
	}

	@Override
	public String toString() {
		return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("id", getId()).append("type", getType())
				.append("code", getCode()).append("name", getName()).append("model", getModel())
				.append("spec", getSpec()).append("installDate", getInstallDate()).append("userId", getUserId())
				.append("indexChartElement", getIndexChartElement()).append("alarmMusic", getAlarmMusic())
				.append("isDef", getIsDef()).append("createTime", getCreateTime()).append("createBy", getCreateBy())
				.append("updateTime", getUpdateTime()).append("updateBy", getUpdateBy())
				.append("sysOrgCode", getSysOrgCode()).toString();
	}
}
